package com.stedu.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders {
    /*
     *订单id主键
     * */
    private Integer oid;
    /*
     *用户id
     * */
    private Integer id;
    /*
     *车辆id
     * */
    private Integer cid;
    /*
     *下单时间
     * */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date orderstime;
    /*
     *租赁天数
     * */
    private String days;
    /*
     *租赁总价格
     * */
    private String pay;
    /*
    * 订单状态
    **/
    private String ostate;
    @Valid
    private Cars cars;
    @Valid
    private Admin admin;


}
